<?php

namespace app\index\controller\source;

use app\index\service\SourceNumberService;
use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\APP;

/**
 * SourceNumber 控制器
 * Class SubscriptionNumber
 * @package app\index\controller\source;
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037509
 */
class SourceNumber
{
    // service
    private SourceNumberService $service;

    public function __construct(SourceNumberService $subscriptionNumberService)
    {
        $this->service = $subscriptionNumberService;
    }


    /**
     * 详情
     * @return ApiResponse
     * @url /source/source_number/read
     */
    public function read(): ApiResponse
    {

        return ApiResponse::success($this->service->read());
    }

}
